﻿using System.Collections;
using System.Collections.Generic;
using System.Data.Objects;
using System.Linq;
using RazakiBLL.Entities;

namespace RazakiBLL.Managers
{
    public class MessagePermissionRps : RpsRazaki<MessagePermission>
    {
        public MessagePermissionRps(ObjectContext context)
            : base(context)
        {
        }

        public MessagePermission GetByPermission(string permission)
        {
            MessagePermission result = _objectSet.Where(x => x.Permission == permission).FirstOrDefault();
            return result;
        }
    }
}
